<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title> hAdmin- 主页</title>

    <meta name="keywords" content="">
    <meta name="description" content="">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico"> <link th:href="@{back/css/bootstrap.min.css?v=3.3.6}" rel="stylesheet">
    <link th:href="@{back/css/font-awesome.min.css?v=4.4.0}" rel="stylesheet">
    <link th:href="@{back/css/animate.css}" rel="stylesheet">
    <link th:href="@{back/css/style.css?v=4.1.0}" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">




<div id="editPassword" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    修改密码
                </h4>
            </div>

            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-12">
                        <form  id="editPasswordForm" role="form">
                            <div class="form-group">
                                <label>旧密码：</label>
                                <input type="hidden" name="id" id="userId" />

                                <input type="text"  name="oldPassword" placeholder="请输入旧密码"  />
                            </div>
                            <div class="form-group">
                                <label>新密码：</label>
                                <input type="text"  name="newPassword" placeholder="请输入新密码"  />
                            </div>
                            <div class="form-group">
                                <label>确认新密码：</label>
                                <input type="text"  name="confirmNewPassword" placeholder="请确认新密码"  />
                            </div>
                        </form>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button"   onclick="editPassword()" class="btn btn-primary">
                        修改
                    </button>
                    <button type="button" class="btn btn-default" data-dismiss="modal" >
                        关闭
                    </button>
                </div>
            </div>
        </div>
    </div>

</div>

<script th:inline="javascript">
    /*<![CDATA[*/
    ctxPath = /*[[@{/}]]*/ '';
    /*]]>*/

    function editPassword() {
        if(!confirm("确定要修改密码吗？")){
            return;
        }
        var url =ctxPath+"/back/user/editMyPassword.action" ;
        $.ajax({
            type: "post",
            url: url,
            data: $('#editPasswordForm').serialize(),
            dataType: "json",
            async: false,
            success: function (data) {
                if(data!=null && data.success){
                    alert("修改成功,请重新登录!");
                    window.location.href="loginOut.action";
                }else {
                    alert(data.message);
                }

            }
        });
        // });
    }
</script>



<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close"><i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header importantblock">
                    <div class="dropdown profile-element">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <i class="fa fa-area-chart"></i>
                                        <strong class="font-bold">hAdmin</strong>
                                    </span>
                                </span>
                        </a>
                    </div>
                    <div class="logo-element">hAdmin
                    </div>
                </li>

                <div id="memberCenter">
                    <ul class="nav">
                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">社区人员</span>
                        </li>
                        <li>
                            <a class="J_menuItem" th:href="@{back/memberCenter/toGuestList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">游客</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/memberCenter/toRegularMemberList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">普通会员</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/memberCenter/toVerifiedMemberList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">认证会员</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/notice/toNoticeList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">会员须知</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/memberAuth/toMemberAuth.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">会员认证审核</span>
                            </a>
                        </li>
                    </ul>
                </div>

                <div id="contentManager">
                    <ul class="nav">
                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">活动管理</span>
                        </li>
                        <li>
                            <a class="J_menuItem" th:href="@{back/activity/toApplyActivityList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">活动申请</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/activity/toPublishedActivityList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">已发布活动</span>
                            </a>
                        </li>






                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">任务管理</span>
                        </li>

                        <li>
                            <a class="J_menuItem" th:href="@{back/task/toApplyTaskList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">任务申请列表</span>
                            </a>

                            <a class="J_menuItem" th:href="@{back/task/toTaskList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">已发布任务</span>
                            </a>
                        </li>

                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">信息管理</span>
                        </li>
                        <li>
                            <a class="J_menuItem" th:href="@{back/publishInfo/toApplyPublishInfoList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">发布信息申请</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/publishInfo/toPublishedInfoList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">已发布信息</span>
                            </a>
                        </li>

                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">资源管理</span>
                        </li>
                        <li>
                            <a class="J_menuItem"  th:href="@{back/conventionCenter/toConventionCenterList.action}"><i class="fa fa-envelope"></i> <span class="nav-label">会议中心管理 </span><span class="label label-warning pull-right">16</span></a>
                            <a class="J_menuItem"  th:href="@{back/meetingRoom/toMeetingRoomList.action}"><i class="fa fa-envelope"></i> <span class="nav-label">会议室管理 </span><span class="label label-warning pull-right">16</span></a>
                            <a class="J_menuItem"  th:href="@{back/meetingRoom/toMeetingRoomApplyList.action}"><i class="fa fa-envelope"></i> <span class="nav-label">会议室申请</span><span class="label label-warning pull-right">16</span></a>
                            <a class="J_menuItem"  th:href="@{back/duty/toDutyApplyList.action}"><i class="fa fa-envelope"></i> <span class="nav-label">值班申请</span><span class="label label-warning pull-right">16</span></a>
                            <a class="J_menuItem"  th:href="@{back/substitute/touSubstituteDutyApplyList.action}"><i class="fa fa-envelope"></i> <span class="nav-label">替班申请</span><span class="label label-warning pull-right">16</span></a>

                        </li>
                    </ul>

                </div>


                <div id="messageCenter">
                    <ul class="nav">

                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">微信消息</span>
                        </li>

                        <li>
                            <a class="J_menuItem" th:href="@{back/messageCenter/sms/sentWeChat.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">发微信消息</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/messageCenter/sms/alreadySentWeChat.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">已发微信</span>
                            </a>
                        </li>

                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">短信消息</span>
                        </li>

                        <li>
                            <a class="J_menuItem" th:href="@{back/messageCenter/sms/alreadySentSms.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">已发短信消息</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/messageCenter/sms/sentSms.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">已发短信</span>
                            </a>
                        </li>

                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">规则设定</span>
                        </li>

                        <li>
                            <a class="J_menuItem" th:href="@{back/messageCenter/rule/receiveRule.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">消息接受人规则</span>
                            </a>
                        </li>

                    </ul>


                </div>

                <div id="systemSetting">
                    <ul class="nav">

                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">系统用户管理</span>
                        </li>

                        <li>
                            <a class="J_menuItem" th:href="@{back/user/toUserList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">用户管理</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/role/toRoleList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">角色管理</span>
                            </a>
                        </li>

                        <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">积分信用管理</span>
                        </li>

                        <li>
                            <a class="J_menuItem" th:href="@{back/integrationRule/toIntegralRuleList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">积分信用规则</span>
                            </a>
                            <a class="J_menuItem" th:href="@{back/integrationChangeRecord/toRecordList.action}">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">变更记录</span>
                            </a>
                        </li>

                    </ul>


                </div>
            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0;">
                <div class="navbar-header">
                    <a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#"><i class="fa fa-bars"></i> </a>
                    <h2 class="minimalize-styl-2" style="font-size: 20px;">天策未来后台管理系统</h2>
                    <a class="btn btn-default minimalize-styl-2" href="#" onclick="selectMenu('memberCenter')" role="button">会员中心</a>
                    <a class="btn btn-default minimalize-styl-2" href="#" onclick="selectMenu('contentManager')" role="button">内容管理</a>
                    <a class="btn btn-default minimalize-styl-2" href="#" onclick="selectMenu('messageCenter')" role="button">消息中心</a>
                    <a class="btn btn-default minimalize-styl-2" href="#" onclick="selectMenu('systemSetting')" role="button">系统设置</a>
                </div>
                <ul class="nav navbar-top-links navbar-right">
                    <li class="dropdown">
                        <a class="dropdown-toggle count-info" data-toggle='modal' data-target='#editPassword' href="#">
                            修改密码
                        </a>
                    </li>
                    <li class="dropdown">
                        <a class="dropdown-toggle count-info" th:href="@{loginOut.action}">
                            退出
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe id="J_iframe" width="100%" height="100%" src="mem_fangke.html" frameborder="0" data-id="mem_fangke.html" seamless></iframe>
        </div>
    </div>
</div>
<!--右侧部分结束-->
</div>


<!-- 全局js -->
<script th:src="@{back/js/jquery.min.js?v=2.1.4}"></script>
<script th:src="@{back/js/bootstrap.min.js?v=3.3.6}"></script>
<script th:src="@{back/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
<script th:src="@{back/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
<script th:src="@{back/js/plugins/layer/layer.min.js}"></script>

<!-- 自定义js -->
<script th:src="@{back/js/hAdmin.js?v=4.1.0}"></script>
<script type="text/javascript" th:src="@{back/js/index.js}"></script>

<!-- 第三方插件 -->
<script th:src="@{back/js/plugins/pace/pace.min.js}"></script>
<script th:inline="javascript">

    $(document).ready(function() {
        $("#side-menu>#systemSetting").hide();
        $("#side-menu>#messageCenter").hide();
        $("#side-menu>#contentManager").hide();

    });

    function selectMenu(type) {
        $("#side-menu>#"+type).show();
        $("#side-menu>#"+type).siblings().hide();
    }
</script>




</body>

</html>
